Page({
  data: {
    VisibleList: []
  },
  onLoad() {
    this.getVisibleList()
  },
  async getVisibleList() {
    const res = await wx.http({ url: '/visitor' })
    // console.log(res);
    this.setData({
      VisibleList: res.data.rows
    })
  },

  goPassport(ev) {
    wx.navigateTo({
      url: '/visitor_pkg/pages/passport/index?id=' + ev.mark.id,
    })
  },
})
